/**
 * 首页使用的后台的后台接口方法
 */
import request from '@/utils/request'

export function getCateApi () {
  return request('/home/category/head', 'get')
}

/**
  * @description: 获取banner图
  * @param {*}
  * @return {*}
  */
export const findBannerApi = () => {
  return request('home/banner', 'get')
}

/**
  * @description: 获取新鲜好物
  * @param {*}
  * @return {*}
  */
export const findNewApi = () => {
  return request('home/new', 'get')
}

/**
  * @description: 获取人气推荐
  * @param {*}
  * @return {*}
  */
export const findHotApi = () => {
  return request('home/hot', 'get')
}

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const findGoods = () => {
  return request('home/goods', 'get')
}
